home *** CD-ROM | disk | FTP | other *** search
- Path: uwm.edu!msunews!news
- From: Robert Foster <rkf@radiology.msu.edu>
- Newsgroups: comp.lang.c++
- Subject: Re: Passing C++ member functions to Xview notifier functions.
- Date: 5 Jan 1996 18:54:53 GMT
- Organization: Michigan State University, Radiology Dept., East Lansing, MI, USA
- Message-ID: <4cjs5t$13hb@msunews.cl.msu.edu>
- References: <4chhsn$sim@msunews.cl.msu.edu> <4cjfd6$16vn@locutus.rchland.ibm.com>
- NNTP-Posting-Host: dbserv.rad.msu.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; SunOS 5.4 sun4m)
- X-URL: news:4cjfd6$16vn@locutus.rchland.ibm.com
-
- >
- > As the error message points out, the function notify_set_input_func is
- > expecting a plain function pointer, not a pointer to a member function.
- > You can use either a plain function, or a static member function of the
- > class.
- >
-
- I have tried both plain and static and still receive the error message.
- It appears that the compiler is complaining about the argument list and
- not the member function pointer. For example, I used _non-class member_
- functions and got...
-
- Error: Formal argument func of type notify_value(*)(...) in call to
- notify_set_input_func(unsigned long, notify_value(*)(...), int) is
- being passed notify_value(*)(unsigned long, int).
-
- Where before, with the class member function I got...
-
- Error: Formal argument func of type notify_value(*)(...) in call to
- notify_set_input_func(unsigned long, notify_value(*)(...), int) is
- being passed notify_value(Pipe::*)(unsigned long, int).
-
- It seems that there is another problem involving the argument list?
- In this case I am calling...
-
- notify_set_input_func( client1, read_from, pipe_in_out[1][0] ) ;
-
- from within a class member function that is part of the same class which
- contains the _read_from_ class member function. An instance of this
- class object would include all of the member functions, right?
-
-